//
//  UIButton+Extension.swift
//  微博
//
//  Created by lipengfei on 15/9/8.
//  Copyright © 2015年 lipengfei. All rights reserved.
//

import UIKit

extension UIButton {
    
    convenience init(title:String,imageName:String, color:UIColor,fontSize:CGFloat){
        self.init()
        setTitle(title, forState: UIControlState.Normal)
        setImage(UIImage(named: imageName), forState: UIControlState.Normal)
        setTitleColor(color, forState: UIControlState.Normal)
        titleLabel?.font = UIFont.systemFontOfSize(fontSize)
    }
}
